<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); ?>

<h2><?php print $header?></h2>
<p><?php echo $this->lang->line( 'category_intro' ); ?></p>
<div class="buttons">                
	<a href="<?php print site_url( 'article/user/category/form' )?>">
    <?php print $this->bep_assets->icon( 'add' );?>
    <?php print $this->lang->line( 'create_category' )?>
    </a>
</div>
<br />
<br />
<br />
<?php print form_open( 'article/user/category/delete' )?>
<table class="data_grid" cellspacing="0">
    <thead>
        <tr>
            <th width=70%><?php print $this->lang->line( 'category_title' )?></th> 
            <th width=15% class="middle"><?php print $this->lang->line( 'category_edit' )?></th>
            <th width=15% class="middle"><?php print $this->lang->line( 'category_translate' )?></th>
            <th width=15%><?php print form_checkbox( 'all', 'select', FALSE)?><?php print $this->lang->line( 'category_delete' )?></th>        
        </tr>
    </thead>
    <tfoot>
        <tr>
            <td colspan=3>&nbsp;</td>
            <td><?php print form_submit( 'delete', $this->lang->line( 'category_delete' ), 'onClick="return confirm(\''.$this->lang->line( 'category_delete_confirm' ).'\');"' )?></td>
        </tr>
    </tfoot>
    <tbody>
        <tr>
            <td colspan=4><?php echo $categories; ?></td>
        </tr>
    </tbody>
</table>
<?php print form_close( )?>